<?php
namespace Admin\Model;
use Think\Model;

class AuthGroupModel extends Model {
    protected $_validate = array(
        array('title', 'require', '用户组名称不能为空', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
        array('title', '', '用户组已经存在', self::VALUE_VALIDATE, 'unique', self::MODEL_BOTH)
    );

    protected $_auto = array(
        array('rules', '', self::MODEL_INSERT),
        array('status', '1', self::MODEL_INSERT),
    );
}